package cn.kwq.project_manger.pojo.RegulatoryPojo;

import cn.kwq.project_manger.pojo.Auditable.Auditable;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity //作为hibernate
@Table(name = "RUser")
@Builder
@ApiModel("监管者对象")
public class RUser extends Auditable<Long> {

    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)//id自增
    @Column(name = "RUser_Id")
    private Long RUserId;

    /**
     * 1是教师2是学生
     */
    private Integer TecOrStu;

    /**
     * 用户名
     */
    private String userName;

    private String password;

}
